package com.omar.labs.tamtamy;

import java.util.ArrayList;


/**
 * Handles the response to URI calls for  
 * <a href="https://tamtamy.reply.it/wiki/API#Content_.28link.29_detail">Content (link)</a>
 * <br>
 * <b>NOTE:</b>It's required to know "a priori" that it will be called a content of type link
 *  
 * @author Omar "0m4r" Adobati 
 * @version %I%, %G% 
 * 
 */
public class ContentLink extends Content{
		
	protected boolean thumbnailPresent;
	protected String thumbnailSmall;
	protected String thumbnailRect;
	protected String thumbnailMedium;
	protected String thumbnailOriginal;	
	protected String contentUrl;
	protected String contentType;
	protected String contentTypeCategory;
	protected String size;

	public ContentLink() {
		super();
		this.thumbnailPresent = false;
		this.thumbnailSmall = null;
		this.thumbnailRect = null;
		this.thumbnailMedium = null;
		this.thumbnailOriginal = null;
		this.contentUrl = null;
		this.contentType = null;
		this.contentTypeCategory = null;
		this.size = null;
	}

	public ContentLink(long id, String title, String description,
			String permission, String discussionPermission,
			String creationDate, String updateDate, String userID,
			String favouriteCounter, String highlight, String numberOfComments,
			String rateEnabled, ArrayList<String> tags, String rate,
			String ratesNumber, String languageCode,
			ArrayList<String> commentList, String views, String downloads,
			String network, boolean thumbnailPresent, String thumbnailSmall,
			String thumbnailRect, String thumbnailMedium,
			String thumbnailOriginal, String contentUrl, String contentType,
			String contentTypeCategory, String size) {
		super(id, title, description, permission, discussionPermission, creationDate,
				updateDate, userID, favouriteCounter, highlight, numberOfComments,
				rateEnabled, tags, rate, ratesNumber, languageCode, commentList, views,
				downloads, network);
		this.thumbnailPresent = thumbnailPresent;
		this.thumbnailSmall = thumbnailSmall;
		this.thumbnailRect = thumbnailRect;
		this.thumbnailMedium = thumbnailMedium;
		this.thumbnailOriginal = thumbnailOriginal;
		this.contentUrl = contentUrl;
		this.contentType = contentType;
		this.contentTypeCategory = contentTypeCategory;
		this.size = size;
	}

	public boolean isThumbnailPresent() {
		return thumbnailPresent;
	}

	public void setThumbnailPresent(boolean thumbnailPresent) {
		this.thumbnailPresent = thumbnailPresent;
	}

	public String getThumbnailSmall() {
		return thumbnailSmall;
	}

	public void setThumbnailSmall(String thumbnailSmall) {
		this.thumbnailSmall = thumbnailSmall;
	}

	public String getThumbnailRect() {
		return thumbnailRect;
	}

	public void setThumbnailRect(String thumbnailRect) {
		this.thumbnailRect = thumbnailRect;
	}

	public String getThumbnailMedium() {
		return thumbnailMedium;
	}

	public void setThumbnailMedium(String thumbnailMedium) {
		this.thumbnailMedium = thumbnailMedium;
	}

	public String getThumbnailOriginal() {
		return thumbnailOriginal;
	}

	public void setThumbnailOriginal(String thumbnailOriginal) {
		this.thumbnailOriginal = thumbnailOriginal;
	}
	
	public String getContentUrl() {
		return contentUrl;
	}

	public void setContentUrl(String contentUrl) {
		this.contentUrl = contentUrl;
	}

	public String getContentType() {
		return contentType;
	}

	public void setContentType(String contentType) {
		this.contentType = contentType;
	}

	public String getContentTypeCategory() {
		return contentTypeCategory;
	}

	public void setContentTypeCategory(String contentTypeCategory) {
		this.contentTypeCategory = contentTypeCategory;
	}

	public void setSize(String size) {
		this.size = size;
	}

	public void print(){
		super.print();				
		System.out.println("thumbnailPresent: " + this.thumbnailPresent);
		System.out.println("thumbnailSmall: " + this.thumbnailSmall);
		System.out.println("thumbnailRect: " + this.thumbnailRect);
		System.out.println("thumbnailMedium: " + this.thumbnailMedium);
		System.out.println("thumbnailOriginal: " + this.thumbnailOriginal);
		System.out.println("contentUrl: " + this.contentUrl);
		System.out.println("contentType: " + this.contentType);
		System.out.println("contentTypeCategory: " + this.contentTypeCategory);
		System.out.println("size: " + this.size);
	}

}

